<template>
  <div class="login-container">
    <div class="login-box">
      <!-- 头部logo -->
      <div class="login-title"></div>
      <!-- 登录表单 -->
      <div class="login-form">
        <el-form
          :model="params"
          :rules="loginRules"
          ref="loginRef"
        >
          <el-form-item prop="name">
            <el-input
              v-model="params.name"
              prefix-icon="el-icon-user"
            />
          </el-form-item>
          <el-form-item prop="password">
            <el-input
              v-model="params.password"
              show-password
              prefix-icon="el-icon-lock"
            />
          </el-form-item>
          <el-form-item>
            <el-button
              type="primary"
              @click="onLogin"
            >
              {{ LOGIN_BTN_NAME }}
            </el-button>
          </el-form-item>
        </el-form>
      </div>
      <!-- 注册导航 -->
      <div class="login-registered">
        <a>{{ REGISTER_BTN_NAME }}</a>
      </div>
    </div>
  </div>
</template>

<script src="./main.js"></script>

<style scoped>
@import url('./index.css');
</style>
